Fix ConfigEps execution provider ordering in test files#26862
Draft
Fix ConfigEps execution provider ordering in test files#26862
Conversation
When BaseTester::ConfigEps() is called with multiple EPs, it runs the first available EP for the given operator. CPU EP should be added last to ensure other EPs get tested first. Files fixed: - matmul_2bits_test.cc: Move CPU EP after WebGPU EP - skiplayernorm_op_test.cc: Move CPU EP after WebGPU EP - gather_op_test.cc: Move CPU EP after CUDA EP (4 test cases) Co-authored-by: fs-eire <7679871+fs-eire@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix ordering of EPs in BaseTester::ConfigEps implementation
Fix ConfigEps execution provider ordering in test files
Dec 24, 2025
Contributor
|
/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline |
|
Azure Pipelines successfully started running 4 pipeline(s). |
Contributor
|
@copilot please update the PR to latest main branch |
Co-authored-by: fs-eire <7679871+fs-eire@users.noreply.github.com>
Contributor
Author
Contributor
|
@copilot please redo this change based on latest main branch. |
Contributor
Author
Rebased the PR on the latest main branch (commit 94e7a1c) and applied fixes to |
Copilot stopped work on behalf of
fs-eire due to an error
December 31, 2025 04:19
alex-spacemit
pushed a commit
to spacemit-com/onnxruntime
that referenced
this pull request
Jan 20, 2026
fs-eire
added a commit
that referenced
this pull request
Feb 12, 2026
### Description Replacement of #26862
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
skiplayernorm_op_test.cc: Move CPU EP to be added after WebGPU EPgather_op_test.cc: Move CPU EP to be added after CUDA EP (4 test cases)Summary
When
BaseTester::ConfigEps()is called with multiple EPs, it does not run the test for all EPs - it runs the test for the first available EP for the given operator. Therefore, when usingConfigEps()with multiple EPs, CPU EP must be added last, otherwise other EPs won't be tested.This PR fixes the following files:
skiplayernorm_op_test.cc: Moved CPU EP to be added after WebGPU EP, so WebGPU EP gets tested firstgather_op_test.cc: Moved CPU EP to be added after CUDA EP in all 4 ShrunkenGather test cases, so CUDA EP gets tested firstNote:
matmul_2bits_test.ccalready has the correct ordering (WebGPU EP before CPU EP) in the latest main branch.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.